Multiple Primary Keys - Mailing list pgsql-novice

From samsom, debra
Subject Multiple Primary Keys
Date
Msg-id 7a4ddaa6040b2907d2@[10.1.1.200]
Whole thread Raw
Responses Re: Multiple Primary Keys
List pgsql-novice

Currently I have a table on Microsoft Sequel Server that I wish to port over to Postgresql.   This table has four primary keys and it's the combination of the four fields that make the record unique.  I have created the table in Postgresql using this in my create.

CONSTRAINT "attachments_pkey"   PRIMARY KEY ("docn","issue","docna","issuea"));"

The table gets created with four primary keys, but when I copy in the data I get the following error..

"Cannot insert a duplicate key into unique index attachments_pkey"

Any ideas??

Debra Samsom
Senior Business Systems Analyst
Bristol Aerospace Ltd.
(204) 775-8331 3402
dsamsom@bristol.ca

pgsql-novice by date:

Previous
From: April L
Date:
Subject: Indexes: which to use BTREE RTREE HASH GIST?
Next
From: "Josh Berkus"
Date:
Subject: Re: Multiple Primary Keys